.class final Lorg/apache/cordova/util/Util$1;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/view/ec;


# instance fields
.field final synthetic val$callbackContext:Lorg/apache/cordova/CallbackContext;

.field final synthetic val$i:I

.field final synthetic val$tempTV:Landroid/widget/TextView;


# direct methods
.method constructor <init>(ILandroid/widget/TextView;Lorg/apache/cordova/CallbackContext;)V
    .locals 0

    iput p1, p0, Lorg/apache/cordova/util/Util$1;->val$i:I

    iput-object p2, p0, Lorg/apache/cordova/util/Util$1;->val$tempTV:Landroid/widget/TextView;

    iput-object p3, p0, Lorg/apache/cordova/util/Util$1;->val$callbackContext:Lorg/apache/cordova/CallbackContext;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    const-string/jumbo v0, "yyyy-MM-dd HH:mm"

    iget v1, p0, Lorg/apache/cordova/util/Util$1;->val$i:I

    if-nez v1, :cond_2

    const-string/jumbo v0, "yyyy-MM-dd"

    :cond_0
    :goto_0
    iget-object v1, p0, Lorg/apache/cordova/util/Util$1;->val$tempTV:Landroid/widget/TextView;

    invoke-static {v0, v1}, Lorg/apache/cordova/util/Util;->getDateFormat(Ljava/lang/String;Landroid/widget/TextView;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string/jumbo v2, "dateTime"

    invoke-virtual {v1, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    iget-object v0, p0, Lorg/apache/cordova/util/Util$1;->val$callbackContext:Lorg/apache/cordova/CallbackContext;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lorg/apache/cordova/util/Util$1;->val$callbackContext:Lorg/apache/cordova/CallbackContext;

    invoke-virtual {v0, v1}, Lorg/apache/cordova/CallbackContext;->success(Lorg/json/JSONObject;)V

    :cond_1
    return-void

    :cond_2
    iget v1, p0, Lorg/apache/cordova/util/Util$1;->val$i:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_3

    const-string/jumbo v0, "HH:mm"

    goto :goto_0

    :cond_3
    iget v1, p0, Lorg/apache/cordova/util/Util$1;->val$i:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_4

    const-string/jumbo v0, "yyyy-MM-dd HH:mm"

    goto :goto_0

    :cond_4
    iget v1, p0, Lorg/apache/cordova/util/Util$1;->val$i:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_0

    const-string/jumbo v0, "yyyy-MM"

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_1
.end method
